package com.xxxx.server.service;

import com.xxxx.server.pojo.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xxxx.server.vo.PageBean;
import com.xxxx.server.vo.RespBean;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 学海无涯
 * @since 2021-11-15
 */
public interface IEmployeeService extends IService<Employee> {
    /**
     * 分页获取所有员工
     * @param currentPage
     * @param pageSize
     * @param employee
     * @param beginDataScope
     * @return
     */
    PageBean getAllEmployee(Integer currentPage, Integer pageSize, Employee employee, LocalDate[] beginDataScope);

    /**
     * 获取工号
     */
    RespBean getMaxWorkID();

    /**
     * 添加员工
     * @param employee
     */
    RespBean addEmp(Employee employee);

    /**
     * 查看员工详情
     * @param id
     * @return
     */
    List<Employee> getEmployee(Integer id);

    /**
     * 获取所有员工的工资账套
     * @param currentPage
     * @param pageSize
     * @return
     */
    PageBean getAllEmployeeWithSalary(Integer currentPage, Integer pageSize);
}
